package com.easemob.chat;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import java.util.HashMap;

public class CmdMessageBody extends MessageBody
  implements Parcelable
{
  public String action;
  public HashMap<String, String> params;
  public static final Parcelable.Creator<CmdMessageBody> CREATOR = new Parcelable.Creator()
  {
    public CmdMessageBody createFromParcel(Parcel paramAnonymousParcel)
    {
      return new CmdMessageBody(paramAnonymousParcel, null);
    }

    public CmdMessageBody[] newArray(int paramAnonymousInt)
    {
      return new CmdMessageBody[paramAnonymousInt];
    }
  };

  public CmdMessageBody(String paramString, HashMap<String, String> paramHashMap)
  {
    this.action = paramString;
    this.params = paramHashMap;
  }

  public CmdMessageBody(String paramString)
  {
    this.action = paramString;
  }

  public String toString()
  {
    return "cmd:\"" + this.action + "\"";
  }

  public int describeContents()
  {
    return 0;
  }

  public void writeToParcel(Parcel paramParcel, int paramInt)
  {
    paramParcel.writeString(this.action);
    paramParcel.writeMap(this.params);
  }

  private CmdMessageBody(Parcel paramParcel)
  {
    this.action = paramParcel.readString();
    this.params = paramParcel.readHashMap(null);
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.chat.CmdMessageBody
 * JD-Core Version:    0.6.1
 */